using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region FlowerCate

	/// <summary>
	/// FlowerCate object for NHibernate mapped table 'FlowerCate'.
	/// </summary>
	public class FlowerCate
	{
		#region Member Variables
		
		protected int _id;
		protected string _typeName;
		protected int _cate;
		protected string _typCode;
		protected int _sortId;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public FlowerCate() { }

		public FlowerCate( string typeName, int cate, string typCode, int sortId, DateTime addDate )
		{
			this._typeName = typeName;
			this._cate = cate;
			this._typCode = typCode;
			this._sortId = sortId;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string TypeName
		{
			get { return _typeName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TypeName", value, value.ToString());
				_typeName = value;
			}
		}

		public  virtual int Cate
		{
			get { return _cate; }
			set { _cate = value; }
		}

		public  virtual string TypCode
		{
			get { return _typCode; }
			set { _typCode = value; }
		}

		public  virtual int SortId
		{
			get { return _sortId; }
			set { _sortId = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}